Package com.cisco.pt.ipc.sim.impl
Class FileManagerImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.FileManagerImpl
- All Implemented Interfaces:
IPCObject,FileManager,Process
Information provided by the PKI file:
\class FileManager
\brief FileManager holds and manipulates the file manager process on routers and switches.
\example network().getDevice("Router0").getProcess("FileManager")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionFileManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptiongetDirectory(String absPath, boolean bCheckPermission) Information provided by the PKI file:Information provided by the PKI file:getFileSystem(String name) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
FileManagerImpl
public FileManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getFileSystem
Information provided by the PKI file:
\brief Returns the file system with the specified name. \param name, the name of the file system. SimFile systems: flash:, nvram: \return FileSystem, the FileSystem object with the specified name.- Specified by:
getFileSystemin interfaceFileManager- Parameters:
name- Takes in a parameter of name- Returns:
- FileSystem Returns a FileSystem
-
getFile
Information provided by the PKI file:
\brief Returns the SimFile given the path and check permission. \param absPath, the absolute path to SimFile. \param bCheckPermission, true if check permission of file, false otherwise. \return SimFile, the SimFile of given path.- Specified by:
getFilein interfaceFileManager- Parameters:
absPath- Takes in a parameter of absPathbCheckPermission- Takes in a parameter of bCheckPermission- Returns:
- SimFile Returns a SimFile
-
getDirectory
Information provided by the PKI file:
\brief Returns the Directory given the path and check permission. \param absPath, the absolute path to directory. \param bCheckPermission, true if check permission of directory, false otherwise. \return Directory, the directory of given path.- Specified by:
getDirectoryin interfaceFileManager- Parameters:
absPath- Takes in a parameter of absPathbCheckPermission- Takes in a parameter of bCheckPermission- Returns:
- Directory Returns a Directory
-